home *** CD-ROM | disk | FTP | other *** search
- package WGClasses;
-
- import java.applet.Applet;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Dimension;
- import java.awt.Image;
- import java.awt.LayoutManager;
- import java.awt.event.MouseEvent;
- import java.net.MalformedURLException;
- import java.net.URL;
-
- public class GIFView extends Applet {
- // $FF: renamed from: iv WGClasses.ImageView2
- ImageView2 field_0;
- String imgFName;
- String linkFName;
-
- public void init() {
- ((Container)this).setLayout((LayoutManager)null);
- ((Component)this).setBackground(Color.white);
- Dimension var1 = ((Component)this).getSize();
- this.field_0 = new ImageView2();
- this.field_0.setBounds(0, 0, var1.width, var1.height);
- ((Container)this).add(this.field_0);
- this.imgFName = ((Applet)this).getParameter("ImageURL");
- this.linkFName = ((Applet)this).getParameter("LinkURL");
-
- try {
- Image var2 = this.field_0.getToolkit().getImage(new URL(((Applet)this).getDocumentBase(), this.imgFName));
- this.field_0.setViewedImage(var2);
- } catch (MalformedURLException var3) {
- }
-
- MyMouseEvent var4 = new MyMouseEvent(this);
- this.field_0.addMouseListener(var4);
- }
-
- public void destroy() {
- this.field_0.setViewedImage((Image)null);
- }
-
- void GIFView_MouseClick(MouseEvent var1) {
- try {
- ((Applet)this).getAppletContext().showDocument(new URL(((Applet)this).getDocumentBase(), this.linkFName));
- } catch (MalformedURLException var2) {
- }
- }
- }
-